projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
980836d
)
Don't use image-map if it isn't defined
author
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 11 Feb 2016 03:51:49 +0000
(14:51 +1100)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Thu, 11 Feb 2016 03:51:49 +0000
(14:51 +1100)
* lisp/net/shr.el (shr-image-map): Only use image-map as a
parent if it's defined (bug#22614).
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index b1f2f0794a768ebc6ba481656b6d7c163b876f15..46aea79c32744badde10721c5f6c50938c9a4b28 100644
(file)
--- a/
lisp/net/shr.el
+++ b/
lisp/net/shr.el
@@
-189,11
+189,10
@@
and other things:
(define-key map "\r" 'shr-browse-url)
map))
-(defvar image-map nil) ;in case image.el is not pre-loaded
-
(defvar shr-image-map
(let ((map (copy-keymap shr-map)))
- (set-keymap-parent map image-map)
+ (when (boundp 'image-map)
+ (set-keymap-parent map image-map))
map))
;; Public functions and commands.